import { createApp } from "vue";
import { createPinia } from "pinia";
import "@/mock/mockServer.ts";
import App from "./App.vue";
import router from "./router";

import NavBar from "@/components/NavBar/index.vue";
import Footer from "@/components/Footer/index.vue";

const app = createApp(App);

// 全局
app.component("NavBar", NavBar);
app.component("Footer", Footer);

app.use(createPinia());
app.use(router);

app.mount("#app");
